<?php $hard_model=$this->hardwaredata;
      $updated_data_name=$this->admindata;
?>
<div id="pad-wrapper">
     <div class="row pagelist-header">
        <h3><?php echo $this->translate("hardware_menu")." ".$this->translate("detail_title"); ?></h3>
     </div>
    <div class="table-products">
       
        <div class="row-fluid ">
            <div class="pull-right">
                <a class="btn-flat new-product" href="<?php echo $this->url(array('module' => 'default', 'controller' => 'hardware', 'action' => 'list'), null, TRUE); ?>"><?php echo $this->translate("detail_back"); ?></a>
            </div>              
        </div>
        
        <div class="main_detail">
            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("hard_frm_name"); ?>: </div>
                <div class="detail_data"><?php echo ucfirst($hard_model['hard_name']);?></div>
            </div>
            
            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("hardware_frm_image"); ?>: </div>
                <div class="detail_data">
                    <?php 
                    if($hard_model['hard_image'] != ''):
                    if (file_exists($this->UPLOAD_PATH . "hardware/" . $hard_model['hard_image'])): ?> 
                        <img src="<?php echo $this->PUBLIC_PATH . "upload/hardware/" . $hard_model['hard_image'] ?>" height="100" width="100">
<?php endif; 
    endif;
?>
                </div>
            </div>
            
            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("hard_frm_build"); ?>: </div>
                <div class="detail_data"><?php echo $hard_model['build_name'];?></div>
            </div>
            
            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("hard_frm_serial"); ?>: </div>
                <div class="detail_data"><?php echo $hard_model['hard_serial'];?></div>
            </div>
            
            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("hard_frm_exp_date"); ?>: </div>
                <div class="detail_data"><?php echo $hard_model['hard_exp_date'];?></div>
            </div>
            
            
            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("hard_frm_location"); ?>: </div>
                <div class="detail_data"><?php echo $hard_model['hard_location'];?></div>
            </div>

            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("hard_frm_createdate"); ?>: </div>
                <div class="detail_data"><?php echo date('Y-m-d',  strtotime($hard_model['hard_createddate']));?></div>
            </div>
            
            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("hard_frm_updatedate"); ?>: </div>
                <div class="detail_data"><?php echo date('Y-m-d',  strtotime($hard_model['hard_updateddate']));?></div>
            </div>
            
            <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("hard_frm_updated_by"); ?>: </div>
                <div class="detail_data">
                   <?php echo $updated_data_name;?>
                </div>
            </div>
            
             <div class="sub_main">
                <div class="detail_label"><?php echo $this->translate("hard_frm_status"); ?>: </div>
                <div class="detail_data">
                   <?php echo ( $hard_model['hard_status'] == 1 ) ? 'Active' : 'Inactive'; ?>
                </div>
            </div>
            
        </div>
        
    </div>
</div>
<div style="clear: both"></div>
<a class="back_bottom" href="<?php echo $this->url(array('module' => 'default', 'controller' => 'hardware', 'action' => 'list'), null, TRUE); ?>"><?php echo $this->translate("detail_back"); ?></a>
